import axios from '@/libs/apiRequest'

export const getQuestions = (data) => {
  return axios.request({
    url: '/api/user/questions',
    data: data,
    method: 'post'
  })
}

export const getExamQuestions = (data) => {
  return axios.request({
    url: '/api/gold/simulate_exam',
    data: data,
    method: 'post'
  })
}
export const getFreeQuestions = (data) => {
  return axios.request({
    url: '/api/user/free_question',
    data: data,
    method: 'post'
  })
}

export const handInExam = (data) => {
  return axios.request({
    url: '/api/gold/add_examhis',
    data: data,
    method: 'post'
  })
}

export const basicSkills = (data) => {
  return axios.request({
    url: '/api/user/basic_skills',
    data: data,
    method: 'post'
  })
}

//精简仿真练习
export const getSimulateExerciseQuestions = (data) => {
  return axios.request({
    url: '/api/gold/simulate_exercise',
    data: data,
    method: 'post'
  })
}

export const removeSingleSubject = (data) => {
  return axios.request({
    url: '/api/gold/remove_simulate_single',
    data: data,
    method: 'post'
  })
}

export const restoreSimulate = (data) => {
  return axios.request({
    url: '/api/gold/restore_simulate',
    data: data,
    method: 'post'
  })
}

//vip
export const getVipQuestions = (data) => {
  return axios.request({
    url: '/api/gold/vip',
    data: data,
    method: 'post'
  })
}
